import org.jetbrains.annotations.TestOnly;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.stream.Collectors;

/**
 * @author : 陈灰灰
 * @Date: 2023/03/09/14:51
 * @Description:
 */
public class sss {
    public static void main(String[] args) {
        ArrayList<Object> list = new ArrayList<>();

        String[] dates = new String[]{"2024-10-24 00:20:00","2024-10-24 00:00:00","2024-10-24 00:10:00"};
        Arrays.stream(dates).map(item ->{
            String[] split = item.split(":");
            System.out.println(Arrays.toString(split));
            System.out.println(split[1]);
            if (split[1].equals("20") || split[1].equals("00") || split[1].equals("40")){
                list.add(item);
            }
            return null;
        }).collect(Collectors.toList());
        System.out.println(list);

    }
}
